<%--
Document   : adminSectionAdd
Created on : Nov 11, 2013
Author     : Mershack/Patrick
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../assets/ico/favicon.png">
    <title>GRS Admin Sections</title>
    <!-- Bootstrap core CSS -->
    <link href="../libs/bootstrap/css/bootstrap.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <header>
        <nav class="navbar navbar-default" role="navigation">
            <div class="navbar-header"><p class="navbar-text navbar-left">Grade Report System</p></div>

            <form class="" method="post" action="adminSections" >
                <ul class="nav navbar-nav">
                    <li><a href="../grs/adminUsers">Users</a></li>
                    <li><a href="../grs/adminCourses">Courses</a></li>
                    <li class="active"><a href="">Sections</a></li>
                </ul>
            </form>
            <form class="navbar-form navbar-right" method="post" action="../login" >
                <div class="form-group">Signed in as ${sessionScope.UserName}</div>
                <button id="logout" name="logout" type="submit" class="btn btn-link">(Log out)</button>
            </form>
        </nav>
    </header>
    <div class="container">
        <div id="errorMessageContainer" class="alert alert-danger" style="display: none;">
            <a class="close" data-dismiss="alert" href="#">×</a><span id="errorMessage">${messages.error}</span>
        </div>
        <h2>Add or Edit Section</h2>
        <p class="lead">Enter the information of the course-section to add or edit.</p>
        <form class="form-horizontal" role="form" method="post" action="adminSections">
            <input type="hidden" id="inputSectionId" name="inputSectionId" value="${inputSectionId}">
            <input type="hidden" id="inputScheduleId" name="inputScheduleId" value="${inputScheduleId}">
            <input type="hidden" id="inputSemesterTypeId" name="inputSemesterTypeId" value="${inputSemesterTypeId}">
            <div class="form-group">
                <label for="inputSectionName" class="col-sm-2 control-label">Section Name</label>
                <div class="col-sm-4">
                    <input name="inputSectionName" type="text" class="form-control" id="inputSectionName" placeholder="Section Name" value="${inputSectionName}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputProfId" class="col-sm-2 control-label">Professor ID</label>
                <div class="col-sm-4">
                    <select class="form-control" id="inputProfId" name="inputProfId">
                        <c:forEach items="${professors}" var="prof">
                            <option value="${prof.userId}">${prof.firstName} ${prof.lastName}</option>
                        </c:forEach>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="inputCourseId" class="col-sm-2 control-label">Course</label>
                <div class="col-sm-4">
                    <select class="form-control" id="inputCourseId" name="inputCourseId">
                        <c:forEach items="${courseList}" var="crs">
                            <option value=${crs.courseId}>${crs.courseName}</option>
                        </c:forEach>
                    </select>
                </div>
            </div>
          <!--  <div class="form-group">
                <label for="inputRoomNumber" class="col-sm-2 control-label">Room Number</label>
                <div class="col-sm-4">
                    <input name="inputRoomNumber" type="text" class="form-control" id="inputRoomNumber" placeholder="Room Number" value="${inputRoomNumber}">
                </div>
            </div>
          -->
            <div class="form-group">
                <label for="inputSemesterType" class="col-sm-2 control-label">Semester Type</label>
                <div class="col-sm-4">
                    <select class="form-control" id="inputSemesterType" name="inputSemesterType">
                        <option value="FALL">Fall</option>
                        <option value="WINTER">Winter</option>
                        <option value="SPRING">Spring</option>
                        <option value="SUMMER_A">Summer A</option>
                        <option value="SUMMER_B">Summer B</option>
                        <option value="SUMMER_C">Summer C</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="inputSemesterYear" class="col-sm-2 control-label">Semester Year</label>
                <div class="col-sm-4">
                    <select class="form-control" id="inputSemesterYear" name="inputSemesterYear" value="${inputSemesterYear}">
                        <option value="2013">2013</option>
                        <option value="2014">2014</option>
                        <option value="2015">2015</option>
                        <option value="2016">2016</option>
                        <option value="2017">2017</option>
                        <option value="2018">2018</option>
                    </select>
                </div>
            </div
            <br>
            <!--
            <table class="table table-bordered table-striped table-condensed">
                <thead>
                    <tr>
                        <th class="col-md-1"></th>
                        <th class="col-md-1">Sunday</th>
                        <th class="col-md-1">Monday</th>
                        <th class="col-md-1">Tuesday</th>
                        <th class="col-md-1">Wednesday</th>
                        <th class="col-md-1">Thursday</th>
                        <th class="col-md-1">Friday</th>
                        <th class="col-md-1">Saturday</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td> Start Hour</td>
                   
                            <td>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <select class="form-control" id="inputStartHour" name="inputStartHour">
                                            <option value="00">00</option>  <option value="01">01</option> <option value="02">02</option>
                                            <option value="03">03</option>  <option value="04">04</option> <option value="05">05</option>
                                            <option value="06">06</option>  <option value="07">07</option> <option value="08">08</option>
                                            <option value="09">09</option>  <option value="10">10</option> <option value="11">11</option>
                                            <option value="12">12</option>  <option value="13">13</option> <option value="14">14</option>
                                            <option value="15">15</option>  <option value="16">16</option> <option value="17">17</option>
                                            <option value="18">18</option>  <option value="19">19</option> <option value="20">20</option>
                                            <option value="21">21</option>  <option value="22">22</option> <option value="23">23</option>
                                        </select>
                                    </div>
                                </div>
                            </td>
                       
                    </tr>
                    <tr>
                        <td> Start Minute</td>
                   
                            <td>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <select class="form-control" id="inputStartMinute" name="inputStartMinute">
                                            <option value="00">00</option>  <option value="05">05</option> <option value="10">10</option>
                                            <option value="15">15</option>  <option value="20">20</option> <option value="25">25</option>
                                            <option value="30">30</option>  <option value="35">35</option> <option value="40">40</option>
                                            <option value="45">45</option>  <option value="50">50</option> <option value="55">55</option>
                                        </select>
                                    </div>
                                </div>
                            </td>
                    

                    </tr>
                    <tr>
                        <td> Start Hour</td>
                  
                            <td>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <select class="form-control" id="inputEndHour" name="inputEndHour">
                                            <option value="00">00</option>  <option value="01">01</option> <option value="02">02</option>
                                            <option value="03">03</option>  <option value="04">04</option> <option value="05">05</option>
                                            <option value="06">06</option>  <option value="07">07</option> <option value="08">08</option>
                                            <option value="09">09</option>  <option value="10">10</option> <option value="11">11</option>
                                            <option value="12">12</option>  <option value="13">13</option> <option value="14">14</option>
                                            <option value="15">15</option>  <option value="16">16</option> <option value="17">17</option>
                                            <option value="18">18</option>  <option value="19">19</option> <option value="20">20</option>
                                            <option value="21">21</option>  <option value="22">22</option> <option value="23">23</option>
                                        </select>
                                    </div>
                                </div>
                            </td>
                        
                    </tr>
                    <tr>
                        <td> Start Minute</td>
                       
                            <td>
                                <div class="col-md-12">
                                    <div class="form-group">
                                        <select class="form-control" id="inputEndMinute" name="inputEndMinute">
                                            <option value="00">00</option>  <option value="05">05</option> <option value="10">10</option>
                                            <option value="15">15</option>  <option value="20">20</option> <option value="25">25</option>
                                            <option value="30">30</option>  <option value="35">35</option> <option value="40">40</option>
                                            <option value="45">45</option>  <option value="50">50</option> <option value="55">55</option>
                                        </select>
                                    </div>
                                </div>
                            </td>
                      
                    </tr>
                </tbody>
            </table>
            -->
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-4">
                    <button name="submitSection" id="submitSection" type="submit" class="btn btn-default btn-primary">Submit</button>
                    <button name="cancelSubmitSection" id="cancelSubmitSection" type="submit" class="btn btn-default">Cancel</button>
                </div>
            </div>
        </form>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <script src="../libs/jquery/jquery-2.0.3.min.js"></script>
    <script src="../libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="../scripts/adminSectionsAdd.js"></script>
    <!-- Placed at the end of the document so the pages load faster -->
</body>
</html>
